package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class BooleanTest {

    private int beginIndex;
    private int endIndex;
    private BooleanPrimary booleanPrimary;
    private boolean not;
    private TruthValue truthValue;

    public BooleanTest(int endIndex, BooleanPrimary booleanPrimary, boolean not, TruthValue truthValue) {
        this.beginIndex = booleanPrimary.getBeginIndex();
        this.endIndex = endIndex;
        this.booleanPrimary = booleanPrimary;
        this.not = not;
        this.truthValue = truthValue;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public BooleanPrimary getBooleanPrimary() {
        return booleanPrimary;
    }

    public boolean isNot() {
        return not;
    }

    public TruthValue getTruthValue() {
        return truthValue;
    }

}
